package org.xq.shop.maxaishop.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.xq.shop.maxaishop.entity.XqSpkie;

@FeignClient(value = "maxai-store")
public interface XqSpkieFeign {

    @PostMapping("/xqSpkie/selectMs")
    XqSpkie selectMs(@RequestParam("mid") Integer mid);
    /**
     * 更新库存
     * @param aid
     * @return
     */
    @GetMapping("/xqSpkie/updateSales")
    int updateSales(@RequestParam("aid") int aid);
}
